//
//  ScoreListCell.m
//  Supermarket
//
//  Created by qskj-ios on 2018/12/11.
//  Copyright © 2018年 com.qiansheng. All rights reserved.
//

#import "ScoreListCell.h"

@implementation ScoreListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self customBorderWithSize:kSeparatorHeight andPosition:UIViewBorderPositionBottom andColor:kSeparatorColor andLeadingInset:10 andTrailingInset:0];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setContentWithScore:(ScoreModel *)model {
    self.nameLabel.text = model.name;
    self.phoneLabel.text = model.mobile;
    self.timeLabel.text = model.date;
    self.scoreLabel.text = [NSString stringWithFormat:@"%ld分", (long)model.point];
}

@end
